Skip to main content

Trigger Using a PLC

Overview

This guide explains how to trigger the OV20i camera from a PLC over Ethernet/IP, monitor its status, and handle errors. The integration ensures reliable image capture within an automated process.

Prerequisites

  • OV20i camera connected to the PLC (see Connect to PLC (Ethernet/IP, PROFINET)).
  • PLC programming software (e.g., Studio 5000).
  • PLC Trigger selected as the Trigger Settings in the recipe Image Setup
note

If PLC Trigger is not selected in the recipe, the camera will ignore PLC trigger requests.

Logic Example

Logic example for triggering using a PLC

Timing Diagram

Timing diagram for triggering using a PLC

Core Concepts

Triggering the Camera

  • PB_TRIGGER: Push-button or control signal from PLC logic to initiate capture.
  • Trigger_ONS: One-shot that generates a single pulse on rising edge of PB_TRIGGER, preventing duplicate triggers.
  • Camera_1:I.Data[0].0: Camera Ready — must be high before triggering.
  • Camera_1:O.Data[0].0: Trigger Request — latched high until acknowledged.
  • Camera_1:I.Data[0].1: Trigger Acknowledge — confirms camera received trigger.

Trigger Sequence

  1. Confirm Camera_1:I.Data[0].0 (Ready) is high.

  2. Activate PB_TRIGGER.

  3. Trigger_ONS pulses and sets Camera_1:O.Data[0].0 (Trigger Request) high.

  4. Camera responds by setting I.Data[0].1 (Trigger Acknowledge) high.

  5. PLC unlatches O.Data[0.0] to complete the trigger cycle.

Result Availability and Status

  • Camera_1:I.Data[2].1: Result Available — high when image processed.
  • Camera_1:I.Data[2].2: Pass/Fail Result — high = pass, low = fail.

Error Handling

  • Camera_1:I.Data[1].0: Trigger Error — high if an error occurs during triggering.
    • This bit latches until reset.
    • Implement PLC logic to reset this bit and handle errors appropriately.

Best Practices

  • Always check Camera Ready (I.Data[0].0) before issuing a trigger.
  • Use one-shot logic (Trigger_ONS) to avoid multiple unintended triggers.
  • Latch the Trigger Request until acknowledgment is received.
  • Monitor result availability before reading Pass/Fail status.
  • Implement robust error handling to detect and clear faults.

Summary of Key Signals

SignalFunctionNotes
PB_TRIGGERInitiates camera triggerFrom PLC logic
Trigger_ONSOne-shot pulsePrevents duplicate triggers
I.Data[0].0Camera ReadyMust be high to allow trigger
O.Data[0].0Trigger RequestLatched until acknowledged
I.Data[0].1Trigger AcknowledgeConfirms trigger received
I.Data[2].1Result AvailableImage processed
I.Data[2].2Pass/Fail ResultHigh = Pass, Low = Fail
I.Data[1].0Trigger ErrorLatched until cleared

Conclusion

By implementing this logic, the OV20i camera can be reliably triggered and monitored using PLC control, ensuring accurate synchronization with industrial automation processes.